package com.yourname.xhs.service;

import com.yourname.xhs.entity.User;

import java.util.List;

public interface UserService {
    //登录
    public abstract User login(String Username,String password) throws Exception;
    //验证管理员
    public abstract boolean isAdmin(User tuser) throws Exception;


    //注册功能
    public abstract boolean register(User user) throws Exception;

    // 查找个人信息
    public abstract void getUserInfo(User user) throws Exception;
 //    public abstract List<User> selectAllUser();//查看所有用户信息

    //修改个人信息
    public abstract int modifyInfo(User user,String Username) throws Exception;

    //修改密码
    public abstract boolean modifyPassword(User user,String cleartext) throws Exception;

}
